<template>
<el-container>
  <el-header class="avue-header">
    <top/>
  </el-header>
  <el-container class="avue-layout">
    <el-aside class="avue-left" style="width:220px;">
      <sidebar/>
    </el-aside>
    <el-main class="avue-main">
        <el-scrollbar style="height:100%">
            <!-- 主体视图层 -->
            <keep-alive>
                <router-view class="avue-view" v-if="$route.meta.$keepAlive" />
            </keep-alive>
            <router-view class="avue-view" v-if="!$route.meta.$keepAlive" />
        </el-scrollbar>
    </el-main>
  </el-container>
</el-container>
</template>

<script>
//import { mapGetters } from 'vuex
import sidebar from './sidebar/'
import top from './top/'

export default {
  components: {
        sidebar,
        top
  },
  name: 'index',
  data() {
    return {}
  },
  created() {
    //实时检测刷新token
    // this.refreshToken();
  },
  mounted() {},
  computed: {},
  props: [],
  methods: {}
}
</script>

<style lang="sass">

</style>
